﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace ChoMy.Models.Data
{
    public class ShoppingCart
    {
        [Key, Column(Order = 0)]
        public int StyleId { get; set; }
        public virtual Style Style { get; set; }

        [Key, Column(Order = 1)]
        public string CreatedBy { get; set; }

        public int Quantity { get; set; }

        public ShoppingCart()
        {
            CreatedBy = HttpContext.Current.User.Identity.Name;
            Quantity = 1;
        }
    }
}